package com.six.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author lx
 * @date 2022/12/10
 * 主页面查询
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HomeDisplayDto {
    //关联用户id
    private Integer uid;

    //用户名
    private String username;

    //头像
    private String icon;

    //商品描述
    private String description;

    //价格
    private Integer originalPrice;

    //图片
    private String pic;

    //发布时间
    @JsonFormat(pattern = "yyyy-MM-dd",locale = "zh",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date promotionStartTime;
}
